home *** CD-ROM | disk | FTP | other *** search
- Enclosure: FileShare Monitor.PKG
-
- Enclosed is a script for handling an "agent" that watches a folder. It is
- similar to the "Trashland" agent that is in 1.0b3. I have extended it to work
- over FileShare, however it can work just about anywhere.
-
- Things of note:
-
- 1. FileShare creates an invisble folder inside of of shared folders. It's
- called "Network Trash Folder". This agent ignores this folder because it
- ignores all folders in general. However, it would be nice if there were a
- "file.isHidden" call to see if the file/folder is hidden, and if it is then oyu
- could ignore it.
-
- 2. This agent waits until all file copying is finished before beginning
- actions by checking the "file.isbusy" verb for each file. It doesn't have to
- be this way, you could change it to start of files that are no longer busy.
- I'm not sure how you might treat the LastModDate variable though.
-
- 3. This agent sends an AppleEvent to Hypercard as it's action. You can
- replace this with any action you want.
-
- I tried to design this agent with FileShare in mind. I had this idea of
- setting up a networked machine with FileShared folders and a variety of
- AppleEvent aware applications and Frontier running on it. Users could access
- services of this machine by dropping files into the FileShared folders. The
- Fronteir agent would see new files and activate scripts to do actions, like
- translation, text massaging, etc. It would control the file routing so that
- the finished product might end up in another FileShared folder called "Finished
- Requests". The user might have their own copy of Frontier watching that folder
- so it could go "bing" when a file appeared. The user could then go and get the
- the file. "Desktop Services" without tying up your own machine. I don't know
- if this is all possible today, but it can't be too far away.
-
- Enjoy,
-
- Mark
- Author: D1180
-